//
//  CantripScriptManager.h
//  Cantrip
//
//  Created by James Callender on Thu Jul 22 2004.
//  Copyright (c) 2004 James Callender. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <CantripSDK/CantripSDK.h>

@interface CantripScriptManager : NSObject {
    NSMutableDictionary *registeredPlugins;
}

+ (CantripScriptManager *)sharedScriptManager;

- (void)registerPlugin:(id)plugin forScriptType:(NSString *)type;
- (id)pluginRegisteredForType:(NSString *)type;

- (id)performScript:(NSString *)script ofType:(NSString *)type;
- (id)performScript:(NSString *)script ofType:(NSString *)type withEnvironment:(NSDictionary *)env;

@end
